import { extend } from "umi-request"

// import axios from "axios"
// axios.default.baseURL = "xxxx"
// 产生一个request对象，你可以构造自己的请求内容
const request = extend({
    prefix: "http://xawn.f3322.net:8012",
    // suffix:"?token=12344",
    timeout: 2000,
    headers: {
        "Content-Type": 'application/x-www-form-urlencoded',
        // "token": localStorage.getItem("token")

    },
    errorHandler: err => {
        console.log("请求失败", err);
    }
})

export default request